<?php
/**
 * @author 	 	 supfire@sohu.com
 * @copyright		 ourmy.com
 * @version		 1.0
 * @name 		 user.php
 * @todo 		 用户action
 * @final 		 2009-05-21
 */
define('IN_YCTOOL', true);//定义该文件合法性
require_once('config.php');
require_once(DIR_COMM . 'common.php');
$menu = 2;
$userid = $user->userinfo['userid'];

$theurl = "list.php?type=$type";
$thePage = isset($_GET['page']) ? $_GET['page'] : 1;
$per = 48;

//list
$rslist[3] = db::getLimit(DB_TABLEPRE . 'web_info', '*', " active <> -1 AND active <> 99 AND active <> 98 AND active <> 97 
    AND type = 3 ORDER BY active DESC, infoid DESC", $thePage, $per);
$count = db::getCount(DB_TABLEPRE . 'web_info', '*', " active <> -1 AND active <> 99 AND active <> 98 AND active <> 97 AND type = 3 ");
!$count && $count=0;
$pagestr = func::pageStr($count, $thePage, $per, $theurl);

require_once DIR_COMM.'template.func.php';
require_once tpl('list.html', $tpldir);
exit;
?>
